package com.example.transactionhintassistant.service;

import com.example.transactionhintassistant.pojo.entity.WeeklyPlan;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.transactionhintassistant.pojo.weeklyplan.AddTaskByWeeklyPlanDto;
import com.example.transactionhintassistant.utils.result.Result;

/**
* @author 86147
* @description 针对表【weekly_plans(周计划表)】的数据库操作Service
* @createDate 2024-03-04 22:32:13
*/
public interface WeeklyPlansService extends IService<WeeklyPlan> {
    Result<Object> addWeeklyPlan(String planName);
    Result<Object> changeWeeklyPlanName(int id,String planName);
    Result<Object> getWeeklyPlans();
    Result<Object> deleteWeeklyPlan(int id);
    Result<Object> addTaskByWeeklyPlan(AddTaskByWeeklyPlanDto addTaskByWeeklyPlanDto);
    Result<Object> getWeeklyPlanIdByName(String planName);
    Result<Object> getTaskFromWeeklyPlan(int id);
}
